import axios from '@/axios'
const state = {

};
const mutations = {

};
const actions = {
  // 报案查询--高级查询
  QueryAdvancedPolicy({
    commit
  }, conditions) {
    return axios.post(axios.config.queryAdvancedPolicy, conditions).then(response => {
      return Promise.resolve(response)
    })
  },
  // 报案按钮 ==> 首先做一下报案检查
  yiYongCaseRegistCheck({
    commit
  }, checkConditions) {
    return axios.post(axios.config.yiYongCaseRegistCheck, checkConditions).then(response=>{
      return Promise.resolve(response)
    })
  },
  // 初始化报案
  initRegist({commit},conditions){
    return axios.post(axios.config.initRegist,conditions).then(response=>{
      return Promise.resolve(response)
    })
  }
};
const getters = {

};
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
